home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
DEC2BASX.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
865b
|
43 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Dec2BaseX( nNum, nBase ) --> cBaseNumString
PARAMETERS:
nNum : Numeric Decimal value
nBase : Base to convert nNum to
SHORT:
Convert a decimal integer to any other base in the range 1...72.
DESCRIPTION:
_Dec2BaseX() converts decimal numeric values to any other base in the range
1 -> 72.
NOTE:
See CAUTIONS under _BaseX2BaseY()!
EXAMPLE:
#define HEX 16
#define OCT 8
#define BIN 2
t = _Dec2BaseX(100,BIN)
Result: t = "1100100"
t = _Dec2BaseX(100,OCT)
Result: t = "144"
t = _Dec2BaseX(100,HEX)
Result: t = "64"
******************************************************************************/